package cn.orangeframe.neon;

import javax.script.ScriptEngineFactory;
import javax.script.ScriptEngineManager;
import java.util.List;

public class ListScriptEngines {
    public static void main(String[] args) {
        ScriptEngineManager sem = new ScriptEngineManager();
        List<ScriptEngineFactory> factories = sem.getEngineFactories();

        for (ScriptEngineFactory factory : factories) {
            System.out.println("Engine: " + factory.getEngineName());
            System.out.println("     Version: " + factory.getEngineVersion());
            System.out.println("     Language: " + factory.getLanguageName());
            System.out.println("     Version: " + factory.getLanguageVersion());
        }
    }
}
